package com.wunong.smart.commission.application.request;

import com.wunong.smart.commission.client.param.BaseOperateCommissionParam;
import com.wunong.smart.domain.platform.common.BaseRequest;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author create by zealot.zt
 */
@Getter
@Setter
@ToString(callSuper = true)
public class BaseCommissionRequest extends BaseRequest {

    /**
     * 用户编号
     */
    private Long userId;

    /**
     * 代办编号
     */
    private Long commissionId;

    public void initCommission(BaseOperateCommissionParam param) {
        this.initBasic(param);
        this.setUserId(param.getUserId());
        this.setCommissionId(param.getCommissionId());
    }

}
